﻿<Window x:Class="Script_Text_Editor_WPF_Edition.WindowSetting"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Title="环境设定" mc:Ignorable="d" FontFamily="SimSun"
        Height="276" Width="443" Icon="/Script%20Text%20Editor%20WPF%20Edition;component/icon.ico" Loaded="Window_Loaded" ResizeMode="NoResize">
    <Grid>
        <TabControl Name="tabControl1" Height="215" VerticalAlignment="Top" HorizontalAlignment="Left" Width="437">
            <TabItem Header="字体和颜色" Name="tabItemFontAndColors">
                <Grid>
                    <GroupBox Header="原文本框" Height="175" HorizontalAlignment="Left" Margin="6,6,0,0" Name="groupBox1" VerticalAlignment="Top" Width="206">
                        <Grid>
                            <Label BorderBrush="Black" BorderThickness="1" Height="45" HorizontalContentAlignment="Center" Margin="6,103,0,0" VerticalContentAlignment="Center" Width="182" HorizontalAlignment="Left" VerticalAlignment="Top">
                                <Label.Background>
                                    <ImageBrush ImageSource="pack://application:,,,/Script Text Editor WPF Edition;component/Images/Transparent Background.png" Stretch="None" TileMode="Tile" Viewport="0,0,16,16" ViewportUnits="Absolute" />
                                </Label.Background>
                            </Label>
                            <Label BorderBrush="Black" BorderThickness="1" Content="三叶草 クローバー Clover" Height="45" HorizontalContentAlignment="Center" Margin="6,103,0,0" Name="labelOrgPrev" VerticalContentAlignment="Center" Width="182" HorizontalAlignment="Left" VerticalAlignment="Top" />
                            <Button Content="字体" Margin="113,6,0,0" Name="buttonOrgFont" Height="26" HorizontalAlignment="Left" Width="75" VerticalAlignment="Top" Click="buttonOrgFont_Click" />
                            <Button Content="前景色" Margin="113,38,0,0" Name="buttonOrgFore" Height="27" VerticalAlignment="Top" HorizontalAlignment="Left" Width="75" Click="buttonOrgFore_Click" />
                            <Button Content="背景色" Margin="113,71,0,0" Name="buttonOrgBack" Height="26" HorizontalAlignment="Left" Width="75" VerticalAlignment="Top" Click="buttonOrgBack_Click" />
                            <Label BorderBrush="Black" BorderThickness="1" Margin="6,6,0,0" Name="labelOrgFont" Width="101" HorizontalAlignment="Left" Height="26" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
                            <Label BorderBrush="Black" BorderThickness="1" Margin="6,38,0,0" Name="labelOrgFore" Width="101" HorizontalAlignment="Left" Height="27" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
                            <Label BorderBrush="Black" BorderThickness="1" Margin="6,71,0,0" Name="labelOrgBack" Width="101" HorizontalAlignment="Left" Height="26" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="新文本框" Height="175" HorizontalAlignment="Left" Margin="216,6,0,0" Name="groupBox2" VerticalAlignment="Top" Width="206">
                        <Grid>
                            <Label BorderBrush="Black" BorderThickness="1" Height="45" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="6,103,0,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="182">
                                <Label.Background>
                                    <ImageBrush ImageSource="pack://application:,,,/Script Text Editor WPF Edition;component/Images/Transparent Background.png" Stretch="None" TileMode="Tile" Viewport="0,0,16,16" ViewportUnits="Absolute" />
                                </Label.Background>
                            </Label>
                            <Label BorderBrush="Black" BorderThickness="1" Content="三叶草 クローバー Clover" Height="45" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="6,103,0,0" Name="labelNewPrev" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="182" />
                            <Button Content="字体" Height="26" HorizontalAlignment="Left" Margin="113,6,0,0" Name="buttonNewFont" VerticalAlignment="Top" Width="75" Click="buttonNewFont_Click" />
                            <Button Content="前景色" Height="27" HorizontalAlignment="Left" Margin="113,38,0,0" Name="buttonNewFore" VerticalAlignment="Top" Width="75" Click="buttonNewFore_Click" />
                            <Button Content="背景色" Height="26" HorizontalAlignment="Left" Margin="113,71,0,0" Name="buttonNewBack" VerticalAlignment="Top" Width="75" Click="buttonNewBack_Click" />
                            <Label BorderBrush="Black" BorderThickness="1" Height="26" HorizontalAlignment="Left" Margin="6,6,0,0" Name="labelNewFont" VerticalAlignment="Top" Width="101" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
                            <Label BorderBrush="Black" BorderThickness="1" Height="27" HorizontalAlignment="Left" Margin="6,38,0,0" Name="labelNewFore" VerticalAlignment="Top" Width="101" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
                            <Label BorderBrush="Black" BorderThickness="1" Height="26" HorizontalAlignment="Left" Margin="6,71,0,0" Name="labelNewBack" VerticalAlignment="Top" Width="101" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem Header="颜色续，背景图片" Name="tabItemFontAndColors2">
                <Grid>
                    <GroupBox Header="列表颜色" HorizontalAlignment="Left" Margin="6,6,0,0" Name="groupBox3" Width="399" Height="66" VerticalAlignment="Top">
                        <Grid>
                            <Button Content="当前行背景" Height="27" HorizontalAlignment="Left" Margin="117,10,0,0" Name="buttonlistViewSelection" VerticalAlignment="Top" Width="69" Click="buttonlistViewSelection_Click" />
                            <Label BorderBrush="Black" BorderThickness="1" Height="27" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="10,10,0,0" Name="labellistViewSelection" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="101" />
                            <Button Content="标记行背景" Height="27" HorizontalAlignment="Left" Margin="312,10,0,0" Name="buttonMarkedLineBack" VerticalAlignment="Top" Width="69" Click="buttonMarkedLineBack_Click" />
                            <Label BorderBrush="Black" BorderThickness="1" Height="27" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="205,10,0,0" Name="labelMarkedLineBack" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="101" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="主界面背景" Height="58" HorizontalAlignment="Left" Margin="6,78,0,0" Name="groupBox4" VerticalAlignment="Top" Width="399">
                        <Grid>
                            <TextBox Height="24" HorizontalAlignment="Left" Margin="10,6,0,0" Name="textBoxBackground" VerticalAlignment="Top" Width="296" />
                            <Button Content="浏览文件" Height="24" HorizontalAlignment="Left" Margin="312,6,0,0" Name="buttonBackground" VerticalAlignment="Top" Width="69" Click="buttonBackground_Click" />
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem Header="杂项" Name="tabItem1">
                <Grid>
                    <GroupBox Header="自动保存（秒）" Height="57" HorizontalAlignment="Left" Margin="6,6,0,0" Name="groupBox7" VerticalAlignment="Top" Width="159">
                        <Grid>
                            <ComboBox Height="24" HorizontalAlignment="Left" Margin="6,6,0,0" Name="comboBoxAutoSave" VerticalAlignment="Top" Width="135" SelectionChanged="comboBoxAutoSave_SelectionChanged">
                                <ComboBoxItem Content="5" />
                                <ComboBoxItem Content="30" />
                                <ComboBoxItem Content="60" />
                                <ComboBoxItem Content="120" />
                                <ComboBoxItem Content="300" />
                                <ComboBoxItem Content="600" />
                                <ComboBoxItem Content="1200" />
                            </ComboBox>
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem Header="文本库" Name="tabItemLibrary">
                <Grid>
                    <GroupBox Header="库类型" Height="70" HorizontalAlignment="Left" Margin="7,31,0,0" Name="groupBox5" VerticalAlignment="Top" Width="401">
                        <Grid>
                            <RadioButton Content="纯文本（内置，默认）" Height="16" HorizontalAlignment="Left" Margin="6,6,0,0" Name="radioButton0" VerticalAlignment="Top" IsChecked="True" />
                            <RadioButton Content="托管动态链接库" Height="16" HorizontalAlignment="Left" Margin="6,28,0,0" Name="radioButton2" VerticalAlignment="Top" />
                            <RadioButton Content="动态代码编译" Height="16" HorizontalAlignment="Left" Margin="244,6,0,0" Name="radioButton1" VerticalAlignment="Top" />
                            <RadioButton Content="非托管动态链接库" Height="16" HorizontalAlignment="Left" Margin="244,28,0,0" Name="radioButton3" VerticalAlignment="Top" IsEnabled="False" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="库位置（纯文本类型不需要）" Height="58" HorizontalAlignment="Left" Margin="7,100,0,0" Name="groupBox6" VerticalAlignment="Top" Width="401">
                        <Grid>
                            <TextBox Height="24" HorizontalAlignment="Left" Margin="10,6,0,0" Name="textBoxLibraryFile" VerticalAlignment="Top" Width="296" />
                            <Button Content="浏览文件" Height="24" HorizontalAlignment="Left" Margin="312,6,0,0" Name="buttonLibraryFile" VerticalAlignment="Top" Width="69" Click="buttonLibraryFile_Click" />
                        </Grid>
                    </GroupBox>
                    <Grid Height="23" HorizontalAlignment="Left" Margin="7,6,0,0" Name="grid1" VerticalAlignment="Top" Width="401" Background="Red">
                        <Image Source="/Script%20Text%20Editor%20WPF%20Edition;component/Images/attention.png" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="9,-6,370,-7" Height="36" Width="22" />
                        <Label Content="修改此处的值可能会造成程序工作不正常，请小心行动。" Height="34" Margin="13,-1,49,0" Name="label1" VerticalAlignment="Top" Foreground="White" HorizontalContentAlignment="Center" />
                    </Grid>
                    <Button Content="确认修改" Height="24" HorizontalAlignment="Left" Margin="325,158,0,0" Name="buttonConfirm" VerticalAlignment="Top" Width="69" Click="buttonConfirm_Click" Foreground="Red" FontWeight="Bold" />
                    <Label Height="25" HorizontalContentAlignment="Center" Margin="4,157,0,0" Name="label2" VerticalAlignment="Top" Content="需要重新运行程序以应用设置。" HorizontalAlignment="Left" Width="186" />
                </Grid>
            </TabItem>
        </TabControl>
        <Button Content="关闭" Margin="352,217,0,0" Name="buttonClose" HorizontalAlignment="Left" Width="75" Height="23" VerticalAlignment="Top" Click="buttonClose_Click" IsDefault="True" />
        <Button Content="恢复默认" Margin="262,217,0,0" Name="buttonDefault" HorizontalAlignment="Left" Width="75" Height="23" VerticalAlignment="Top" Click="buttonDefault_Click" />
    </Grid>
</Window>